package cn.jszhao.eform.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.jszhao.common.utils.PageUtils;
import cn.jszhao.common.utils.Query;

import cn.jszhao.eform.dao.EformTemplateDao;
import cn.jszhao.eform.entity.EformTemplateEntity;
import cn.jszhao.eform.service.EformTemplateService;


@Service("eformTemplateService")
public class EformTemplateServiceImpl extends ServiceImpl<EformTemplateDao, EformTemplateEntity> implements EformTemplateService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<EformTemplateEntity> page = this.page(
                new Query<EformTemplateEntity>().getPage(params),
                new QueryWrapper<EformTemplateEntity>()
        );

        return new PageUtils(page);
    }

}